package com.mydesignpattern.beijing.responsibilitychain.middle;

/**
 * Created by nevermore on 17/4/25.
 */
public class MsgProcessor {

    private Request request;

    private Response response;

    private FilterChain filterChain;


    //处理方法
    public void processor(Request request, Response response){
        filterChain.doFilter(request, response,filterChain);
    }

    public Request getRequest() {
        return request;
    }

    public void setRequest(Request request) {
        this.request = request;
    }

    public Response getResponse() {
        return response;
    }

    public void setResponse(Response response) {
        this.response = response;
    }

    public FilterChain getFilterChain() {
        return filterChain;
    }

    public void setFilterChain(FilterChain filterChain) {
        this.filterChain = filterChain;
    }
}
